package cn.tools;

public class Page {
    private Integer pageIndex;
    private Integer pageSize;
    private Integer pageCount;
    private Integer pageTotal;

    public Integer getPageIndex() {
        return pageIndex;
    }

    public void setPageIndex(Integer pageIndex) {
        this.pageIndex = pageIndex;
    }

    public Integer getPageSize() {
        return pageSize;
    }

    public void setPageSize(Integer pageSize) {
        this.pageSize = pageSize;
    }

    public Integer getPageCount() {
        return pageCount;
    }

    public void setPageCount(Integer pageCount) {
        this.pageCount = pageCount;
    }

    public Integer getPageTotal() {
        return pageTotal;
    }

    public void setPageTotal(Integer pageTotal) {
        this.pageTotal = pageTotal;
        pageCount=this.pageTotal%pageSize==0?(this.pageTotal/pageSize):(this.pageTotal/pageSize+1);
    }
}
